package com.action.customer;

import com.db.customer.*;
import java.util.*;

public class ListAction {

	private int boardtype;

	private List<CustomerVO> list = new ArrayList<CustomerVO>();

	public List<CustomerVO> getList() {
		return list;
	}

	public int getBoardtype() {
		return boardtype;
	}

	public void setBoardtype(int boardtype) {
		this.boardtype = boardtype;
	}

	public String execute() throws Exception {

		System.out.println("list: :" + boardtype);
		list = CustomerDAO.customerAllData(boardtype);

		return "success";
	}

	public String boardtype() throws Exception {

		return "success";
	}
}
